﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class FangXing_BLL
    {
        public FangXing_BLL(FangXing_DAL dal)
        {
            Dal = dal;
        }

        public FangXing_DAL Dal { get; }

        /// <summary>
        /// 房型添加
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int FangXingAdd(FangXing_Model m)
        {
            return Dal.FangXingAdd(m);
        }
        /// <summary>
        /// 房型列表
        /// </summary>
        /// <param name="index"></param>
        /// <param name="size"></param>
        /// <param name="Count"></param>
        /// <param name="Count2"></param>
        /// <returns></returns>
        public List<FangXing_Model> FangXingShow(int index, int size, out int Count, out int Count2)
        {
           return Dal.FangXingShow(index, size, out Count, out Count2);
        }
        /// <summary>
        /// 房型删除
        /// </summary>
        /// <param name="FXId"></param>
        /// <returns></returns>
        public int FangXingShan(int FXId)
        {
           return Dal.FangXingShan(FXId);
        }
        /// <summary>
        /// 房型状态
        /// </summary>
        /// <param name="FXId"></param>
        /// <param name="FXZT"></param>
        /// <returns></returns>
        public int FangXingZT(int FXId, bool FXZT)
        {
           return Dal.FangXingZT(FXId, FXZT);

        }
        /// <summary>
        /// 房型反填
        /// </summary>
        /// <param name="FXId"></param>
        /// <returns></returns>
        public FangXing_Model FangXingFan(int FXId)
        {
           return Dal.FangXingFan(FXId);
        }

        /// <summary>
        /// 房型修改
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int FangXingXiouGai(FangXing_Model m)
        {
           return Dal.FangXingXiouGai(m);

        }
    }
}
